package com.zeng.pojo;

import java.util.Date;

/**
 * @author zeng
 * @date 2021/08/09 13:26
 */
public class Employee {
    //员工id
    private int id;
    private String name;
    private String email;
    private Department department;
    private Date date;
    private int sex;//0代表女，1代表男

    public Employee(int id, String name, String email, Department department, int sex) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.department = department;
        //时间默认
        this.date = new Date();
        this.sex = sex;
    }

    public Employee() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Department getdepartment() {
        return department;
    }

    public void setdepartment(Department department) {
        this.department = department;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", Department=" + department +
                ", date=" + date +
                ", sex=" + sex +
                '}';
    }
}
